import React from 'react';
import { Routes, Route, Navigate } from 'react-router-dom';
import MainLayout from '../../components/MainLayout';
import Reform from './Reform';
import ReformDetail from './ReformDetail';
import Filing from './Filing';
import FilingDetail from './FilingDetail';

const Summary: React.FC = () => {
  return (
    <MainLayout>
      <Routes>
        <Route path="reform" element={<Reform />} />
        <Route path="reform/detail/:id" element={<ReformDetail />} />
        <Route path="filing" element={<Filing />} />
        <Route path="filing/detail/:id" element={<FilingDetail />} />
        <Route path="*" element={<Navigate to="reform" replace />} />
      </Routes>
    </MainLayout>
  );
};

export default Summary; 